
from tortoise.contrib.fastapi import register_tortoise
from fastapi import FastAPI
from config import TORTOISE_ORM


async def init_db(app: FastAPI):
    register_tortoise(
        app=app,
        config=TORTOISE_ORM,
        generate_schemas=True,
    )

